package com.housediyadmin.command.buildingCommand
{	
	import com.housediyadmin.events.buildingEvents.AddBuildingEvent;
	import com.housediyadmin.service.BuildingRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/1
	 */	
	public class AddBuildingCommand extends Command
	{
		[Inject]
		public var service:BuildingRemoteObjectService;
		
		[Inject]
		public var event:AddBuildingEvent;
		
		override public function execute():void
		{
			service.addBuildingDetail(event.building, event.areaIds);
		}
	}
}